package pattern;

import java.util.Comparator;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.PriorityBlockingQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:实现定时器
 * User: 东莞呵呵
 * Date:2022-09-20
 * Time:16:11
 */

//class MyTimer{
//    BlockingQueue<MyTask> blockingQueue=new PriorityBlockingQueue<>(10, new Comparator<MyTask>() {
//        @Override
//        public int compare(MyTask o1, MyTask o2) {
//            return o2.;
//        }
//    });
//}

class MyTask{

}

public class Demo5 {
    public static void main(String[] args) {

    }
}
